package com.stars.entity.pshow;
import javax.validation.constraints.NotBlank;
import org.springframework.format.annotation.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Table;
import java.math.BigDecimal;
import io.swagger.annotations.ApiModelProperty;
import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.excel.annotation.ExcelTarget;
import com.stars.common.base.entity.BaseEntity;/**
 * @Title: 仓库管理实体
 * @author 肖伟
 * @date 2020-01-04
 * @version V1.0
 *
 */
@Data
@Table(name = "P_SHOW_PRODUCT")
@EqualsAndHashCode(callSuper = false)
@ExcelTarget("20")
public class PShowProductEntity extends BaseEntity{

	/**产品名称*/
	@NotBlank(message="产品名称不能为空!")
	@Excel(name = "产品名称")
	@ApiModelProperty(value ="产品名称",name = "name")
	private String name;
	/**产品编码*/
	@Excel(name = "产品编码")
	@ApiModelProperty(value ="产品编码",name = "code")
	private String code;
	/**产品规格*/
	@Excel(name = "产品规格")
	@ApiModelProperty(value ="产品规格",name = "size")
	private String size;
	/**单价*/
	@Excel(name = "单价")
	@ApiModelProperty(value ="单价",name = "price")
	private Double price;
	/**数量*/
	@Excel(name = "数量")
	@ApiModelProperty(value ="数量",name = "num")
	private Integer num;
	/**单位*/
	@Excel(name = "单位")
	@ApiModelProperty(value ="单位",name = "unit")
	private String unit;
	/**所属仓库*/
	@Column(name = "CK_NAME")
	@Excel(name = "所属仓库")
	@ApiModelProperty(value ="所属仓库",name = "ckName")
	private String ckName;
	/**所属仓库*/
	@Column(name = "CK_ID")
	@Excel(name = "所属仓库")
	@ApiModelProperty(value ="所属仓库",name = "ckId")
	private String ckId;
}

